﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section head {
    <script type="text/javascript">
        $(function () {
            $("#left-menu").accordion({
                heightStyle: "content"
            });
            $(".jquery-ui-menu").menu();
            $("input[type=button], button").button();

            //Globalize.culture
            ("@TN_CMS.Admin.Helper.Common.CultureHelper.GetCurrentCulture()"); @* Set appropriate culture *@

            $(".lang-picker a." + Globalize.culture().name.toLowerCase()).prependTo($(".lang-picker")); @* Select current culture*@

            @* culture change *@
            $(".lang-picker a").click(function () {

                if ($(this).hasClass(Globalize.culture().name.toLowerCase()))
                    return false; // do nothing

                $.cookie("_culture", $(this).attr("class"), { expires: 365, path: '/' });
                window.location.reload(); // reload
            });
        });
    </script>
    @RenderSection("head", false)
}

<span class="lang-picker">
	<a class="en-us" href="javascript:void(0);">English</a>
	<a class="@(TN_CMS.Admin.Helper.Common.CultureHelper.GetNeutralCulture(Request.UserLanguages[0].ToLower()) == "es" ? Request.UserLanguages[0].ToLower() : "vi-VN")" href="javascript:void(0);">Việt Nam</a>
</span>
@Resources.Resource.Home_Test
<div id="container">
    <div id="header">

    </div>
    <div id="body-container">
        @Html.Action("LeftMenu", "Common")
        <div id="main-content">
            @RenderBody()
        </div>
    </div>
    <div id="footer">
        © 2013 TN CMS - Terms of Service - Privacy Policy - Help
    </div>
</div>